package com.digdes.calendar.model.impl;

import com.digdes.calendar.gwt.client.dto.PlaceDTOImpl;
import com.digdes.calendar.model.Event;
import com.digdes.calendar.model.Place;

import java.util.HashSet;
import java.util.Set;

public class PlaceImpl implements Place {
    private Long id;
    private String address;
    private Set<Event> events = new HashSet<Event>(0);

    public PlaceImpl(){

    }
    public PlaceImpl(PlaceDTOImpl placeDTO){
        this.id = placeDTO.getId();
        this.address= placeDTO.getAddress();
    }
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Set<Event> getEvents() {
        return this.events;
    }

    public void setEvents(Set<Event> events) {
        this.events = events;
    }

}
